<?xml version='1.0' encoding='UTF-8' ?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml"
      xmlns:h="http://java.sun.com/jsf/html"
      xmlns:p="http://primefaces.org/ui"
      xmlns:f="http://java.sun.com/jsf/core">
    <h:head>
        <title>Facelet Title</title>
    </h:head>
    <h:body>
                                
     
        <h:form id="frmLogin">
            <p:panel header="LOGIN" style="width: 700px">
                <p:messages/>
                <p:growl/>
                <p:spacer height="30"/>
            <p:panelGrid columns="2">
        <p:outputLabel for="login" id="lblLogin" value="Login :" />
        <p:inputText id="login" size="50" value="#{loginCtrl.login}" label="login" required="true" requiredMessage="Informe o login de usuário !">
           
        </p:inputText>
        <p:outputLabel for="senha" id="lblSenha" value="Senha :"/>
        <p:password id="senha" size="50" value="#{loginCtrl.senha}" label="lblSenha" required="true" requiredMessage="Informe a senha !"/>
        
        <p:commandButton value="Entrar" process="@form" update="@form" action="#{loginCtrl.logar()}"/>
        <p:commandButton value="Limpar"/>
    </p:panelGrid>
            </p:panel>
        </h:form>
         </h:body>
</html>

